package com.example.java.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.*;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Repository
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "User对象", description = "")
public class User {

    @TableId("id")
    private Integer id;

    private String name;
    private Integer pay;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;
    private BigDecimal balance;

    private String avatar;
}
